import time
import json
import requests

url = "http://192.168.99.173:50012/health"
url = "http://192.168.99.173:50012/task"
# url = "http://192.168.82.111:50012/task"

data = {
    "request_id": "aaaaaa",
    "check_type":20, 
    "dingding_doc_link": "https://alidocs.dingtalk.com/i/nodes/20eMKjyp81R7pXXmsYMoxajlWxAZB1Gv?utm_scene=team_space&utm_medium=dingdoc_doc_plugin_card&utm_source=dingdoc_doc", 
    "callback_url":"https://test3-devops.xiujiadian.com/api/v1/open/inspectCallback/proDocContent",
    "level": "B"
}
data["dingding_doc_link"] = "asdddddddd"
data2 = {
    "request_id": "aaaaaa",
    "check_type":10, 
    
    "keyword": "mysql建表规范", 
}

data3 = {"callback_url": "https://devops.xiujiadian.com/api/v1/open/inspectCallback/proDocContent", "check_type": 20, "dingding_doc_link": "https://alidocs.dingtalk.com/i/nodes/amweZ92PV6vrmaabcZKb6r0BVxEKBD6p", "level": "D", "request_id": "fb5e357c-6b94-4de5-890f-9d674a1a5cf0"}
data3 = {"callback_url": "https://devops.xiujiadian.com/api/v1/open/inspectCallback/proDocContent", "check_type": 20, "dingding_doc_link": "https://alidocs.dingtalk.com/i/nodes/ydxXB52LJq7G611vFAoyqNMEWqjMp697", "level": "D", "request_id": "54c52757-60ce-452f-9403-7e233e32342f"}
data3 = {"callback_url": "https://devops.xiujiadian.com/api/v1/open/inspectCallback/proDocContent", "check_type": 20, "dingding_doc_link": "https://alidocs.dingtalk.com/i/nodes/amweZ92PV6vrmaabcZKb6r0BVxEKBD6p", "level": "D", "request_id": "fb5e357c-6b94-4de5-890f-9d674a1a5cf0"}
data3 = {"callback_url": "https://devops.xiujiadian.com/api/v1/open/inspectCallback/proDocContent", "check_type": 20, "dingding_doc_link": "https://product.xiujiadian.com/pm_8008/00.%E5%B7%A5%E7%A8%8B%E5%B8%88APP%E9%A1%B9%E7%9B%AE/%E5%B7%A5%E5%8D%95%E4%BA%A4%E4%BB%98%E6%B5%81%E7%A8%8B/%E4%B8%8A%E9%97%A810%E5%88%86%E9%92%9F_v3.6.0_%E6%A3%80%E6%B5%8B%E6%8A%A5%E4%BB%B7%E6%95%B4%E6%94%B9/#id=fsmqhz&p=%E4%B8%9A%E5%8A%A1%E9%9C%80%E6%B1%82", "level": "B", "request_id": "69d6af97-ab93-4cad-b11f-fbd71632d9e0"}
data3 = {"callback_url": "https://test3-devops.xiujiadian.com/api/v1/open/inspectCallback/proDocContent", "check_type": 20, "dingding_doc_link": "https://alidocs.dingtalk.com/i/nodes/14lgGw3P8vvGK11jcDE31zga85daZ90D?utm_scene=team_space", "level": "C", "request_id": "69be91f6a2494fdeaba7733f4c181de6"}
data3 = {"callback_url": "https://devops.xiujiadian.com/api/v1/open/inspectCallback/proDocContent", "check_type": 20, "dingding_doc_link": "https://alidocs.dingtalk.com/i/nodes/ydxXB52LJq7G611vFvkrlk45WqjMp697?doc_type=wiki_doc", "level": "C", "request_id": "f32b801e612d42228205561a327c590b", "retry_times": 3}
while True:
    res = requests.post(url=url,json=data3)
    print(res.text)
    print(json.loads(res.text))
    time.sleep(60*10)